package com.alinesno.cloud.base.logger.entity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Entity;
import com.alinesno.cloud.common.facade.orm.entity.BaseEntity;


/**
 * <p>
 * 触发条件
 * </p>
 *
 * @author WeiXiaoJin
 * @since 2020-01-29 08:14:53
 */
@Entity
@Table(name="log_trigger_condition")
public class LogTriggerConditionEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 触发条件
     */
	@Column(name="condition_name")
	private String conditionName;
    /**
     * 条件值
     */
	@Column(name="condition_value")
	private String conditionValue;
    /**
     * 表达式
     */
	@Column(name="condition_spel")
	private String conditionSpel;
	
	/**
	 * 事件ID
	 */
	@Column(name="trigger_id")
	private String triggerId;


	public String getConditionName() {
		return conditionName;
	}

	public void setConditionName(String conditionName) {
		this.conditionName = conditionName;
	}

	public String getConditionValue() {
		return conditionValue;
	}

	public void setConditionValue(String conditionValue) {
		this.conditionValue = conditionValue;
	}

	public String getConditionSpel() {
		return conditionSpel;
	}

	public void setConditionSpel(String conditionSpel) {
		this.conditionSpel = conditionSpel;
	}

	public String getTriggerId() {
		return triggerId;
	}

	public void setTriggerId(String triggerId) {
		this.triggerId = triggerId;
	}


	@Override
	public String toString() {
		return "LogTriggerConditionEntity{" +
			"conditionName=" + conditionName +
			", conditionValue=" + conditionValue +
			", conditionSpel=" + conditionSpel +
			", triggerId=" + triggerId +
			"}";
	}
}
